<?php


require "database.php";


$base=new Db;

$id      =$_POST["id"];






$__del_ad__=$base->doSql('delete from ey_ad where id="'.$id.'"');



if($__del_ad__){
    return json([
        "code"=>200    
    ]);
}else{
    return json([
        "code"=>-1  
    ]);
}